Skip to content

Fix: Replace incorrect apt install with dpkg -i for local deb package installation#7

Open
luisadha wants to merge 1 commit into
Hope2333:pure-androidfrom
luisadha:patch-1
Open

Fix: Replace incorrect apt install with dpkg -i for local deb package installation#7
luisadha wants to merge 1 commit into
Hope2333:pure-androidfrom
luisadha:patch-1

Conversation

@luisadha

@luisadha luisadha commented Jun 22, 2026

Copy link
Copy Markdown

Overview

This PR replaces the incorrect use of apt install -y for local .deb packages with the proper dpkg -i command. Problem using apt install -y directly on local paths fails on certain environments. I have tested this multiple times on my local machine (Termux on Android), and the current implementation does not work as intended for local Debian packages.

Solution:
Change the installation command to use dpkg -i instead.

Target command: dpkg -i /path/location/opencode_1.17.7_aarch64.deb I have successfully implemented and tested this approach in my own project using the following configuration:

export FZF_DEFAULT_OPTS=(--bind="one:execute(tmpfile=\$(mktemp) && wget -O \"\$tmpfile\" {3} && dpkg -i \"\$tmpfile\" && rm -f \"\$tmpfile\" && exit)+abort" )

References

Source Implementation:
luisadha/nene

@luisadha luisadha changed the title Saya rasa apt install -y adalah perintah yang keliru Fix: Replace incorrect apt install with dpkg -i for local deb package installation Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant